#-*-coding: utf-8 -*_#开发团队
# E-Mail: cq30@foxmail.com
# 开发时间 : 2021/10/10 21:49
# @auther: CQ-PRO
# Origin :崔强 2019110504 

import numpy as np
import scipy.stats as ss
n = 18
A = ss.chi2.isf((1-0.9)/2,df=(n-1))
B = ss.chi2.isf(0.9,df=(n-1))
print("置信区间为:(%.4f,%.4f)"%((n-1)*0.36/A,(n-1)*0.36/B))








